package More;

import java.util.Scanner;

public class test {

    public static void run(Irun irun){
        irun.run();
    }
    public static void swim(ISwimming iSwimming){
        iSwimming.swim();
    }
    public static void fly(Ifly ifly){
        ifly.fly();
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);


        run(new Duck("小鸭子",20));
        swim(new fish("小鱼人",30));
        fly(new Duck("小鸭子",30));
    }
}
